﻿@model FortuneArterial.Site.Model.Assets.AssetsInfo
@{
    ViewBag.Title = "Create";
}

<form class="form-horizontal" method="POST" action="/Manage/Assets/Edit">

    <fieldset>
        <legend>资源信息</legend>
        <div class="form-group">
            <label class="col-md-2 control-label" for="txtName">资源名称</label>
            <div class="col-md-10">
                <input class="form-control" placeholder="Assets Name" type="text" 
                       id="txtName" name="Name" value="@Model.Name">
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-2 control-label" for="txtVersion">版本号</label>
            <div class="col-md-10">
                <input class="form-control" placeholder="Assets Version" type="text" 
                       id="txtVersion" name="Version" value="@Model.Version">
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-2 control-label" for="txtHomePage">主页</label>
            <div class="col-md-10">
                <input class="form-control" placeholder="Assets HomePage" type="text" 
                       id="txtHomePage" name="HomePage" value="@Model.HomePage">
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-2 control-label" for="txtRemarks">简介</label>
            <div class="col-md-10">
                <textarea class="form-control" placeholder="Assets Remarks"
                        id="txtRemarks" name="Remarks">@Model.Remarks</textarea>
            </div>
        </div>
    </fieldset>

    <div class="form-actions">
        <div class="row">
            <div class="col-md-12">
                <input type="hidden" name="ID" value="@Model.ID" />
                <a class="btn btn-link" href="/manage/assets/index">Cancel</a>
                <button class="btn btn-primary" type="submit">
                    <i class="fa fa-save"></i>
                    Submit
                </button>
            </div>
        </div>
    </div>
</form>

<script type="text/javascript">

    // DO NOT REMOVE : GLOBAL FUNCTIONS!
    pageSetUp();

    loadScript('/Assets/SmartAdmin/js/link4ajax.js', function() {
        link4ajax('.form-actions');
    });

</script>